<template>
  <div class="box">
    <div class="header">
      <div class="header-content">
        <div class="header-left">
          <img src="https://flowbite.com/docs/images/logo.svg" alt="" />
          <span>氢氦锂铍硼</span>
        </div>
        <div class="header-center">
          <router-link to="/home/index" tag="div">首页</router-link>
          <router-link to="/home/fenlei" tag="div">分类</router-link>
          <router-link to="/home/biaoqian" tag="div">标签</router-link>
          <router-link to="/home/guidang" tag="div">归档</router-link>
        </div>
        <div class="header-right">
          <el-input v-model="input" placeholder="请输入内容"></el-input>
          <div class="touxiang"></div>
        </div>
      </div>
    </div>
    <div class="content">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      input: "",
    };
  },
};
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
}
body {
  background-color: #777;
}
.header {
  width: 100%;
  background-color: white;
  border-bottom: 1px solid #eee;
}
.header-content {
  width: 1280px;
  height: 70px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;

  box-sizing: border-box;
}
.header-left {
  display: flex;
  align-items: center;
}
.header-left img {
  margin-right: 5px;
}
.header-left span {
  font-size: 24px;
  font-weight: 600;
  line-height: 70px;
}
.header-center{
  display: flex;
}
.header-center div{
  margin: 0 20px;
  cursor: pointer;
}
.header-center div:hover{
  color: blue;
}
.header-right {
  display: flex;
  align-items: center;
}
.touxiang {
  width: 42px;
  height: 32px;
  border-radius: 50%;
  margin-left: 10px;
  background-color: skyblue;
  box-sizing: border-box;
}
.router-link-exact-active{
  color: blue;
}
.content{
  width: 1200px;
  margin: 0 auto;
  margin-top: 20px;
}
</style>